<?php

namespace IMT\Plugins\OrderBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Ordre
 *
 * @ORM\Table(name="ordre")
 * @ORM\Entity
 */
class Ordre
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="content", type="text")
     */
    private $content;

    /**
     * @var boolean
     *
     * @ORM\Column(name="state", type="boolean")
     */
    private $state;

    /**
     * @var integer
     *
     * @ORM\Column(name="position", type="integer")
     */
    private $position;
    
    /**
     * @ORM\ManyToOne(targetEntity="IMT\EventBundle\Entity\Meeting", inversedBy="orders")
     * @ORM\joinColumn(name="event_id", referencedColumnName="id")
     */
    private $event;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }
    
    /**
     * Set event
     *
     * @param IMT\EventBundle\Models\EventInterface $event
     */
    public function setEvent(\IMT\EventBundle\Models\EventInterface $event)
    {
    	$this->event = $event;
    }
    
    /**
     * Get event
     *
     * @return IMT\EventBundle\Models\EventInterface
     */
    public function getEvent()
    {
    	return $this->event;
    }

    /**
     * Set content
     *
     * @param string $content
     * @return Ordre
     */
    public function setContent($content)
    {
        $this->content = $content;
    
        return $this;
    }

    /**
     * Get content
     *
     * @return string 
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * Set state
     *
     * @param boolean $state
     * @return Ordre
     */
    public function setState($state)
    {
        $this->state = $state;
    
        return $this;
    }

    /**
     * Get state
     *
     * @return boolean 
     */
    public function getState()
    {
        return $this->state;
    }

    /**
     * Set position
     *
     * @param integer $position
     * @return Ordre
     */
    public function setPosition($position)
    {
        $this->position = $position;
    
        return $this;
    }

    /**
     * Get position
     *
     * @return integer 
     */
    public function getPosition()
    {
        return $this->position;
    }
}
